using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AnimationPositionController:StateMachineBehaviour {

	public override void OnStateUpdate(Animator animator,AnimatorStateInfo stateInfo,int layerIndex) {
		base.OnStateUpdate(animator,stateInfo,layerIndex);
		/*
		float targetDelta = animator.GetFloat("playProgress")-stateInfo.normalizedTime;
		animator.speed=targetDelta/Time.deltaTime;
		Debug.Log($"{animator.speed} {animator.GetCurrentAnimatorStateInfo(0).normalizedTime}");
		*/
		//animator.ForceStateNormalizedTime(animator.GetFloat("playProgress"));
	}
}
